package demo2;

class Cat extends Animal implements Trainable {
    private String furColor;

    public Cat(String name, int age, String furColor) {
        super(name, age);
        this.furColor = furColor;
    }

    public String getFurColor() {
        return furColor;
    }

    @Override
    public void makeSound() {
        System.out.println(name + " 喵喵叫");
    }

    @Override
    public void train() {
        System.out.println(name + " 较难被训练");
    }
}    